package com.mvnframe;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
@MapperScan(basePackages = "com.mvnframe.mapper")
//@ServletComponentScan(basePackages = "com.mvnframe.filter")
public class Bootshow implements WebMvcConfigurer {
    public static void main(String[] args){
        SpringApplication.run(Bootshow.class,args);
    }
    @Value("${spring.servlet.multipart.location}")
    String upload;

//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry){
//        registry.addResourceHandler("/upload/**").addResourceLocations("file:///"+upload);
//    }


}
